
	<div id="submenu" >
<?php echo anchor('user/new_user', lang('menuitem_add_new') ,'class="btn"')?>

	</div>
	<br>
	<br>
	
	<?php
		//print how much user(s) we get
		echo $count.' '.lang('general_record_found');

		//print_r($staff_type);
			
	?>
	
	<?php if($count > 0) {?>

				
	<table  id='myTable' name='myTable' class='tablesorter' border='0' cellspacing='1' cellpadding='0'>
		<thead><tr>
			<th> # </th>
			<th> <?php echo lang('form_label_username')?> </th>
			<th> <?php echo lang('general_type')?> </th>
			<th> <?php echo lang('form_label_name')?> </th>
			<th> <?php echo lang('menuitem_specialities')?> </th>
			<th> <?php echo lang('menuitem_edit')?> </th>
			<th> <?php echo lang('menuitem_delete')?> </th>
		</tr>
		</thead>
		<tbody>
	<?php 
		$i = 0;
		foreach($result as $row){
			echo "<tr>";
			echo "<td>". ++$i ."</td>";
			echo "<td>".$row['username']."</td>";
			echo "<td>".$staff_type[$row['type_id']]."</td>";
			echo "<td>".$row['first_name']." ".$row['last_name']."</td>";
			echo "<td>".$specialty[$row['specialty_id']]."</td>";
			echo "<td>". anchor("user/new_user/".$row['id'] , lang('menuitem_edit'))."</td>";
			echo "<td>". anchor("user/delete_user/".$row['id'] , lang('menuitem_delete'))."</td>";
			echo "</tr>";
		}
	echo "</table>";
	} //end if?>
